#include "um_basic_types.h"
#include "umapi_libc.h"
#include "umapi_os.h"

UM_HANDLE testMalloc()
{
	UM_HANDLE ret= umapi_malloc(1 * 1024 * 1024 );
	umapi_printf("malloc :%p", ret);
	return ret;
}
int main(int argc ,char **argv)
{
	umapi_os_init();
	int i = 0;
	for(i=0;i<100;i++)
	{
	UM_HANDLE handle = testMalloc();
	umapi_printf("handle :%p", handle);
	*((UM_U8*)handle) = '1';
	umapi_free(handle);
	}
	return 0;
}
